package com.lxx.modules.erp.biz.impl;

import org.springframework.stereotype.Service;

import com.lxx.modules.erp.biz.IEquipmentBiz;
import com.lxx.common.BaseServiceImpl;
import com.lxx.modules.erp.dao.EquipmentDao;
import com.lxx.modules.erp.entity.Equipment;

@Service
public class EquipmentBizImpl extends BaseServiceImpl<Equipment, Integer, EquipmentDao> implements IEquipmentBiz{

	@Override
	public Integer convertId(String idStr) {
		return Integer.parseInt(idStr);
	}

	@Override
	public int delete(Equipment t) {
		t.setDelFlag(true);
		return baseMapper.updateByPrimaryKeySelective(t);
	}
}
